package com.zj.healthmanage.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.zj.healthmanage.pojo.Healthintervention;
import com.zj.healthmanage.mapper.HealthinterventionMapper;
import com.zj.healthmanage.service.HealthinterventionService;
@Service
public class HealthinterventionServiceImpl implements HealthinterventionService{

    @Resource
    private HealthinterventionMapper healthinterventionMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return healthinterventionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Healthintervention record) {
        return healthinterventionMapper.insert(record);
    }

    @Override
    public int insertSelective(Healthintervention record) {
        return healthinterventionMapper.insertSelective(record);
    }

    @Override
    public Healthintervention selectByPrimaryKey(Integer id) {
        return healthinterventionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Healthintervention record) {
        return healthinterventionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Healthintervention record) {
        return healthinterventionMapper.updateByPrimaryKey(record);
    }

}
